<!-- login.vue -->
<template>
  <div id="login">
    <!-- 遮罩层 -->
    <div class="overlay"></div>

    <!-- 登录容器 -->
    <div class="login-wrapper">
      <ImageGallery />
      <UserLogin />
      <ModelFader />
    </div>
  </div>
</template>

<script setup>
import ImageGallery from '@/components/ImageGallery.vue'
import UserLogin from '@/components/UserLogin.vue'
import ModelFader from '@/components/ModelFader.vue'

</script>

<style scoped>
#login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: auto; /* 允许交互 */
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9998;
}

.login-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 70%;
  max-width: 70%;
  height: 85%;
  background: url('@/assets/94.jpg') no-repeat center center;
  background-size: cover;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
    width: 90%;
    height: auto;
    min-height: 60%;
    max-height: 90%;
    border-radius: 0;
  }
  .photos {
    display: none !important;
  }
}
</style>